#include "mainpage.h"
#include "ui_mainpage.h"

mainpage::mainpage(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::mainpage)
{
    ui->setupUi(this);
    this->setAttribute(Qt::WA_StyledBackground, true);
}

mainpage::~mainpage()
{
    delete ui;
}

void mainpage::on_cameraBtn_clicked()
{
    emit switchToPage(cameraApp);
}


void mainpage::on_photoBtn_clicked()
{
    emit switchToPage(photoApp);
}


void mainpage::on_musicBtn_clicked()
{
    emit switchToPage(musicApp);
}


void mainpage::on_videoBtn_clicked()
{
    emit switchToPage(videoApp);
}


void mainpage::on_mapBtn_clicked()
{
    emit switchToPage(mapApp);
}


void mainpage::on_messageBtn_clicked()
{
    emit switchToPage(messageApp);
}


void mainpage::on_clockBtn_clicked()
{
    emit switchToPage(clockApp);
}


void mainpage::on_settingBtn_clicked()
{
    emit switchToPage(settingApp);
}

